﻿<div id="divmiddle">

<fieldset>

<div id="border-table">
	
<IF NAME="user_not_normal">
	<!-- start info System Messages -->
	<div id="system-message">
		<div class="info">
		<ul>
		<li>{lang.USERS_NOT_NORMAL_SYS} !</li>
		</ul>
		</div>
	</div>	
	<!-- end info System Messages -->
</IF>

<form method="post" name="userform" action="{action}">
         
<IF NAME="is_search">
<strong> 
<IF NAME="is_asearch">
<h2><img class="imgtitle" src="{STYLE_PATH_ADMIN}images/search_button.gif" >{lang.ADMINISTRATORS}</h2>
<!-- start dot  -->
<p class="dot" />
<!-- end dot  -->

<!-- start clear  -->
<div class="clr"></div><br />
<!-- end clear  -->
<ELSE>
{lang.SEARCH_USERS}
</IF>
 {lang.AUSERS_NUM} : ( {nums_rows} )
</strong>
<!-- start clear  -->
<div class="clr"></div><br />
<!-- end clear  -->
<ELSE>

<!-- title  -->
<h2><img class="imgtitle" src="{STYLE_PATH_ADMIN}images/users_button.gif" />{lang.R_USERS} :</h2>
<!-- title  -->

<!-- start dot  -->
<p class="dot" />
<!-- end dot  -->

<!-- start clear  -->
<div class="clr"></div>
<!-- end clear  -->

<div class="adminstrators"><a href="{action}&admin=1">{lang.ADMINISTRATORS}</a></div>

<!-- start clear  -->
<div class="clr"></div><br />
<!-- end clear  -->

</IF>

<table style="text-align:center">
        <tr style="background-color:#E4E4E4">
                <td>{lang.USERNAME}</td>
                <td>{lang.EMAIL}</td>
                <td>{lang.PASSWORD}</td>
                <td>{lang.IS_ADMIN}</td>
                <td><a href="javascript:void(0);" onclick="checkAll(document.userform, '_del', 'su');">{lang.DELETE}</a></td>
                <!-- admin users info tr extra -->
        </tr>
<IF NAME="no_results">
...		
<ELSE>
<LOOP NAME="arr">
        <tr id="su[{{id}}]" class="osilver">
                <td><label><input type="text" name="nm_{{id}}" value="{{name}}" size="32"></label> <br />
				<small><a href="{{delusrfile_link}}" onclick="javascript:return confirm_from();">{lang.ADMIN_DELETE_FILES}</a> | <a target="_blank" href="{{userfile_link}}">{lang.BROSWERF}</a></small>

				</td>
                <td><label><input type="text" name="ml_{{id}}" value="{{mail}}" size="20" style="direction:ltr"></label></td>
                <td><label><input type="password" name="ps_{{id}}" value="" size="10" style="text-align:center;"></label></td>
                <td>{{admin}}</td>
                <td><input type="checkbox"  name="del_{{id}}" value="{{id}}" onclick="change_color(this,'su[{{id}}]');" rel="_del"></td>
                <!-- admin users data tr extra -->
        </tr>
</LOOP>
</IF>
</table>

<fieldset class="quick">
<div style="text-align:center">{page_nums}
                <input class="button2" name="submit" type="submit" value="{lang.UPDATE_USERS}" />
</div>
</fieldset>

</form>
</div>

<!-- start clear  -->
<div class="clr"></div><br />
<!-- end clear  -->

<IF NAME="isn_search">
<form method="post" action="">

<div id="border-table">

<h2><img class="imgtitle" src="{STYLE_PATH_ADMIN}images/users_button.gif" />{lang.NEW_USER} :</h2>

<!-- start dot  -->
<p class="dot" />
<!-- end dot  -->

<!-- start clear  -->
<div class="clr"></div><br />
<!-- end clear  -->


<table style="text-align:center">
        <tr style="background-color:#E4E4E4">
                <td>{lang.USERNAME}</td>
                <td>{lang.EMAIL}</td>
                <td>{lang.PASSWORD}</td>
                <!-- admin users info tr extra -->
        </tr>
        <tr style="background-color:#F5F5F5">
                <td><label><input type="text" name="lname" value="" size="30"></label></td>
                <td><label><input type="text" name="lmail" value="" size="20" style="direction:ltr"></label></td>
                <td><label><input type="password" name="lpass" value="" size="20"></label></td>
                <!-- admin users data tr extra -->
</table>

<fieldset class="quick" style="text-align:center"><input class="button2" name="newuser" type="submit" value="{lang.SUBMIT}" /></fieldset>

</div>

</form>
</IF>

</fieldset>

</div>

        
